import { http } from '@/utils/http'

export const getMemberOrderPreAPI = () => {
  return http({
    method: 'GET',
    url: '/member/order/pre',
  })
}

export const getMemberOrderPreNowAPI = (data) => {
  return http({
    method: 'GET',
    url: '/member/order/pre/now',
    data,
  })
}

export const postMemberOrderAPI = (data) => {
  return http({
    method: 'POST',
    url: '/member/order',
    data,
  })
}

export const getMemberOrderByIdAPI = (id) => {
  return http({
    method: 'GET',
    url: `/member/order/${id}`,
  })
}

export const getMemberOrderConsignmentByIdAPI = (id) => {
  return http({
    method: 'GET',
    url: `/member/order/consignment/${id}`,
  })
}
